<template>
  <my-nav-bar title="抽奖记录" class="historical_records_page">
    <van-cell-group>
      <van-cell v-for="(items, index) in recordsInfo"
                :key="index"
                :title="items.luckyDraw.titled || '幸运大抽奖'"
                :value="items.winTime"
                :label="items.prizeVO.text"
      />
    </van-cell-group>
  </my-nav-bar>
</template>


<script>
import MyNavBar from "@/components/MyNavBar";
import {myAllLuckyWin} from "@/api/lucky";
import {
  Cell,
  CellGroup
} from "vant";

export default {
  name: "historicalRecords",
  components:{
    MyNavBar,
    [Cell.name]: Cell,
    [CellGroup.name]: CellGroup
  },
  data(){
    return {
      recordsInfo: []
    }
  },
  created() {
    myAllLuckyWin({pageNum: 1, pageSize: 999}).then(res => {
      this.recordsInfo = res.data.list;
    })
  }
}
</script>

<style scoped>
</style>
